-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extend TealAppDriver$active_module_element()
method with new hash
parameter
#1150
Conversation
b5e86d3
to
6e168f9
Compare
{teal.widgets}
teal.widgets::table_with_settings
and teal.widgets::verbatim_popup
Hey @vedhav and @averissimo I decided to stop this PR on implementing tests for 2 requested initially functions (our of 4). I think I'm in the place where an extra pair of eyes would be appreciated.
|
Code Coverage Summary
Diff against main
Results for commit: 9a23c3c Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Test Performance Difference
Additional test case details
Results for commit d0b211b ♻️ This comment has been updated with latest results. |
Unit Tests Summary 1 files 30 suites 2m 53s ⏱️ Results for commit 9a23c3c. ♻️ This comment has been updated with latest results. |
appreciate the review @averissimo - thanks! |
Co-authored-by: André Veríssimo <[email protected]> Signed-off-by: Marcin <[email protected]>
…github.com/insightsengineering/teal into teal.widgets@503-introduce-shinytest2@main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These modules doesn't appear in teal. Please test where they appear
Hey @averissimo and @gogonzo I removed the tests and will upload them in |
teal.widgets::table_with_settings
and teal.widgets::verbatim_popup
TealAppDriver$active_module_element()
method with new hash
parameter
|
#' | ||
#' @return (`string`) The active shiny name space of the component bound with the input `element`. | ||
active_module_element = function(element) { | ||
active_module_element = function(element, hash = TRUE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide use case where id is needed without a #
prefix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gogonzo yes, it is for the download button of the table in table_with_settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's the app$get_value()
that doesn't take #
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but teal.widgets don't use tealAppDriver so I think it isn't necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I've never experience a need to remove hash anywhere else in any other test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed as draft PR in teal.widgets
doesn't need a TealAppDriver
Part of #503
This is here only temporary. We might decide that tests for
{teal.widgets}
should leave in{teal.widgets}
package repository.